<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>评价单位注册</title>
	<script src="../../js/header.js"></script>
	<style type="text/css">
		html, body, #app {
			padding: 0px;
			margin: 0px;
		}
		#app{
			border-top: 3px solid #0D9AFF;
			/*background: #FFFFFF;
			box-shadow: 0px 2px 4px 0 rgba(200,200,200,0.50);*/
			padding: 25px;
			/*background: url(../../images/bg.png) no-repeat;
			background-size: cover;*/
			/*background-attachment: fixed;*/
			overflow: hidden;
		}
		.tab{
			border: 1px solid #DCDFE6;
		}
		.el-input__inner {
			-webkit-appearance: none;
			background-color: #FFF;
			background-image: none;
			border: 1px solid #DCDFE6;
			border-radius: 0px;
			-webkit-box-sizing: border-box;
			box-sizing: border-box;
			color: #606266;
			display: inline-block;
			font-size: inherit;
			height: 30px;
			line-height: 30px;
			outline: 0;
			padding: 0 10px;
			-webkit-transition: border-color .2s cubic-bezier(.645,.045,.355,1);
			transition: border-color .2s cubic-bezier(.645,.045,.355,1);
			width: 100%;
		}
		.linkMan .el-input .el-input__inner{

			height: 60px;
		}
		.el-textarea__inner {
			display: block;
			resize: vertical;
			padding: 5px 15px;
			line-height: 1.5;
			-webkit-box-sizing: border-box;
			box-sizing: border-box;
			width: 100%;
			height: 120px;
			font-size: inherit;
			color: #606266;
			background-color: #FFF;
			background-image: none;
			border: 1px solid #DCDFE6;
			border-radius: 0px;
			-webkit-transition: border-color .2s cubic-bezier(.645,.045,.355,1);
			transition: border-color .2s cubic-bezier(.645,.045,.355,1);
		}
		.el-input .el-input__clear {
			line-height: 30px;
		}
		.el-input__icon {
			line-height: 30px;
		}
		.el-form-item {
			margin-bottom: 0px;
		}
		.el-form-item__content {
			line-height: 30px;
			position: relative;
			font-size: 14px;
		}
		.el-form-item__error {
			color: #F56C6C;
			font-size: 12px;
			line-height: 1;
			padding-top: 4px;
			position: absolute;
			top: 100%;
			left: 0;
			z-index: 99;
			width: 400px;
			text-align: left;
		}
		.red{
			color: #F56C6C;
		}
	</style>
</head>

<body>
<div v-cloak id="app">
	<div style="margin-top: 10px;">
		<h3 style="text-align: center;">地震安全性评价单位信息情况表</h3>
		<el-form :model="apUnitEntity" :rules="rules" ref="apUnitEntity"  style="width:80%;font-size: 14px;border: 1px solid #DCDFE6;margin: 10px auto; background-color: #FFFFFF ">
			<!--第一行-->
			<el-row>
				<el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
					<span class="red">*</span>
					<span class="">单位名称</span>
				</el-col>
				<el-col :span="12" style="width: 75%;">
					<el-form-item prop="unitName">
						<el-input v-model="apUnitEntity.unitName" style="" placeholder="" ></el-input>
					</el-form-item>
				</el-col>
			</el-row>
			<!--第二行-->
			<el-row>
				<el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
					<span class="red">*</span>
					<span class="">主体身份代码</span>
				</el-col>
				<el-col :span="12" style="width: 75%;">
					<el-form-item prop="pripId">
						<el-input v-model="apUnitEntity.pripId" style="" placeholder="请填写社会统一信用代码" ></el-input>
					</el-form-item>
				</el-col>
			</el-row>
			<el-row>
				<el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
					<span class="red">*</span>
					<span class="">行业类别</span>
				</el-col>
				<el-col :span="12" style="width: 75%;">
					<el-form-item prop="industryCategory">
						<el-select  v-model="apUnitEntity.industryCategory" placeholder="请选择" ref="industryCategory"   style="width: 100%;">
							<el-option  style="height: auto">
								<el-tree :data="hangyetypeLIst"
										 ref="tree"
										 @check-change="handleCheckChangehangye"
										 show-checkbox
										 :default-expand-all="true"
										 :check-strictly="true"
										 :default-checked-keys="[7420]"
										 node-key="id"></el-tree>
							</el-option>
						</el-select>
					</el-form-item>
				</el-col>
			</el-row>
			<el-row>
			<el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
				<span class="red">*</span>
				<span class="">组织类别</span>
			</el-col>
			<el-col :span="12" style="width: 75%;">
				<el-form-item prop="organizationClass">
					<el-select  v-model="apUnitEntity.organizationClass" placeholder="请选择" ref="organizationClass"    style="width: 100%;">
						<el-option  style="height: auto">
							<el-tree :data="orgTypeList"
									 ref="tree"
									 @check-change="handleCheckChange"
									 show-checkbox
									 :default-expand-all="true"
									 :check-strictly="true"
									 node-key="id"></el-tree>
						</el-option>
					</el-select>
				</el-form-item>
			</el-col>
		</el-row>
			<el-row>
				<el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
					<span class="red">*</span>
					<span class="">国民经济类型</span>
				</el-col>
				<el-col :span="12" style="width: 75%;">
					<el-form-item prop="nationalEconomy">
						<el-select  v-model="apUnitEntity.nationalEconomy" placeholder="请选择国民经济类型" ref="nationalEconomy"    style="width: 100%;">
							<el-option  style="height: auto">
								<el-tree :data="jinjilist"
										 ref="tree"
										 @check-change="handleCheckChangejinji"
										 show-checkbox
										 :default-expand-all="true"
										 :check-strictly="true"
										 node-key="id"></el-tree>
							</el-option>
						</el-select>
					</el-form-item>
				</el-col>
			</el-row>
			<el-row>
				<el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
					<span class="">注册号</span>
				</el-col>
				<el-col :span="12" style="width: 75%;">
					<el-form-item prop="regNo">
						<el-input v-model="apUnitEntity.regNo" style="" placeholder="" ></el-input>
					</el-form-item>
				</el-col>
			</el-row>
			<el-row>
				<el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
					<span class="">企业类型</span>
				</el-col>
				<el-col :span="12" style="width: 75%;">
					<el-form-item prop="entType">
						<el-input v-model="apUnitEntity.entType" style="" placeholder="" ></el-input>
					</el-form-item>
				</el-col>
			</el-row>
			<el-row>
				<el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
					<span class="">企业类型(中文名称)</span>
				</el-col>
				<el-col :span="12" style="width: 75%;">
					<el-form-item prop="entTypeCn">
						<el-input v-model="apUnitEntity.entTypeCn" style="" placeholder="" ></el-input>
					</el-form-item>
				</el-col>
			</el-row>
			<!--第二行-->
			<el-row>
				<el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
					<span class="red">*</span>
					<span class="">单位性质</span>
				</el-col>
				<el-col :span="4"  style="width: 75%;">
					<el-form-item prop="">
						<el-select  v-model="apUnitEntity.syUnitType" placeholder="请选择" ref="syUnitType"   @change="syChangeValue" style="width: 50%;">							
							<el-option label="事业" value="事业"></el-option>
							<el-option label="企业" value="企业"></el-option>
						</el-select>

						<el-select  v-model="apUnitEntity.qyUnitType" placeholder="请选择" ref="qyUnitType"  @change="qyChangeValue" style="width: 50%;margin: -4.2px;">
							<el-option
									v-for="item in apUnitlist"
									:key="item.code"
									:label="item.name"
									:value="item.name"
									>
							</el-option>
						</el-select>
					</el-form-item>
				</el-col>

			</el-row>
			<!--第三行-->
			<el-row>
				<el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
					<span class="red">*</span>
					<span class="">注册地址</span>
				</el-col>
				<el-col :span="10" style="width: 45%;">
					<!--<el-input v-model="apUnitEntity.registAddr" style="width: 320px;" placeholder="" ></el-input>-->
					<el-col :span="5">
						<el-form-item prop="provinceValue">
							<el-select v-model="apUnitEntity.provinceValue" :title="provinceValue" placeholder="选择省" @change="chooseProvince">
								<el-option
										v-for="item in provinceData"
										:key="item.code"
										:label="item.name"
										:value="item.name"
								>
								</el-option>
							</el-select>
						</el-form-item>
					</el-col>
					<el-col :span="5">
						<el-form-item prop="cityValue">
							<el-select v-model="apUnitEntity.cityValue" :title="cityValue" placeholder="选择市" @change="chooseCity" >
								<el-option
										v-for="item in cityData"
										:key="item.code"
										:label="item.name"
										:value="item.name"
								>
								</el-option>
							</el-select>
						</el-form-item>
					</el-col>
					<el-col :span="5">
						<el-form-item prop="areaValue">
							<el-select v-model="apUnitEntity.areaValue" :title="areaValue" @change="chooseArea" placeholder="选择区、县" >
								<el-option
										v-for="item in areaData"
										:key="item.code"
										:label="item.name"
										:value="item.name"
										style="width: 170px;">
								</el-option>
							</el-select>
						</el-form-item>
					</el-col>
					<el-col :span="9">
						<el-form-item prop="detailAddress">
							<el-input v-model="apUnitEntity.detailAddress" :title="detailAddress" placeholder="请输入详细地址" ></el-input>
						</el-form-item>
					</el-col>
				</el-col>
				<el-col :span="2" class="tab" style="width: 10%;text-align: center;height: 30px;line-height: 30px;">
					<span class="red">*</span>
					<span class="">邮编</span>
				</el-col>
				<el-col :span="4" style="width: 20%;">
					<el-form-item prop="registAddrCode">
						<el-input v-model="apUnitEntity.registAddrCode"  placeholder="" ></el-input>
					</el-form-item>
				</el-col>
			</el-row>
			<!--第四行-->
			<el-row>
				<el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
					<span class="red">*</span>
					<span class="">办公地址</span>
				</el-col>
				<el-col :span="10" style="width: 45%">
					<el-form-item prop="bgAddr">
						<el-input v-model="apUnitEntity.bgAddr"  placeholder="" ></el-input>
					</el-form-item>
				</el-col>
				<el-col :span="2" class="tab" style="width: 10%;text-align: center;height: 30px;line-height: 30px;">
					<span class="red">*</span>
					<span class="">邮编</span>
				</el-col>
				<el-col :span="4" style="width: 20%;">
					<el-form-item prop="bgAddrCode" >
						<el-input v-model="apUnitEntity.bgAddrCode"  placeholder="" ></el-input>
					</el-form-item>
				</el-col>
			</el-row>
			<!--第五行-->
			<el-row>
				<el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
					<span class="red">*</span>
					<span class="">法定代表人</span>
				</el-col>
				<el-col :span="10" style="width: 45%;">
					<el-form-item prop="legalMan">
						<el-input v-model="apUnitEntity.legalMan"  placeholder="" ></el-input>
					</el-form-item>
				</el-col>
				<el-col :span="2" class="tab" style="width: 10%;text-align: center;height: 30px;line-height: 30px;">
					<span class="red">*</span>
					<span class="">电话</span>
				</el-col>
				<el-col :span="4" style="width:20%">
					<el-form-item prop="legalManTel">
						<el-input v-model="apUnitEntity.legalManTel"  placeholder="" ></el-input>
					</el-form-item>
				</el-col>
			</el-row>
			<!--第六行-->
			<el-row>
				<el-col :span="2" class="tab" style="width: 10%;text-align: center;height: 60px;line-height: 60px;">
					<span class="red">*</span>
					<span class="">联系人</span>
				</el-col>
				<el-col :span="2" class="linkMan" style="width: 15%;text-align: center;">
					<el-form-item prop="linkMan">
						<el-input v-model="apUnitEntity.linkMan" style="height: 60px;" placeholder="" ></el-input>
					</el-form-item>
				</el-col>
				<el-col :span="2" class="tab" style="width: 10%;text-align: center;height: 60px;line-height: 60px;">
					<span class="red">*</span>
					<span class="">联系电话</span>
				</el-col>

				<el-col :span="4"  style="width: 35%;text-align: center;height: 28px;line-height: 28px;">
					<el-row >
						<el-col :span="2" class="tab" style="width: 30%;text-align: center;height: 30px;line-height: 30px;">
							<span class="red">*</span>
							<span class="">手机</span>
						</el-col>
						<el-col :span="4" style="width: 70%;">
							<el-form-item prop="linkTel">
								<el-input v-model="apUnitEntity.linkTel"  placeholder="" ></el-input>
							</el-form-item>
						</el-col>
					</el-row>
					<el-row>
						<el-col :span="2" class="tab" style="width: 30%;text-align: center;height: 30px;line-height: 30px;">
							<span class="red">*</span>
							<span class="">办公室</span>
						</el-col>
						<el-col :span="4" style="width: 70%;">
							<el-form-item prop="linkOffice">
								<el-input v-model="apUnitEntity.linkOffice"  placeholder="" ></el-input>
							</el-form-item>
						</el-col>
					</el-row>
				</el-col>

				<el-col :span="4"  style="width: 30%;text-align: center;height: 28px;line-height: 28px;">
					<el-row >
						<el-col :span="2" class="tab" style="width: 33.5%;text-align: center;height: 30px;line-height: 30px;">
							<span class="red"></span>
							<span class="">传真</span>
						</el-col>
						<el-col :span="4" style="width: 66.5%;">
							<el-form-item prop="linkFax" >
								<el-input v-model="apUnitEntity.linkFax"  placeholder="" ></el-input>
							</el-form-item>
						</el-col>
					</el-row>
					<el-row>
						<el-col :span="2" class="tab" style="width: 33.5%;text-align: center;height: 30px;line-height: 30px;">
							<span class="red">*</span>
							<span class="">电子邮箱</span>
						</el-col>
						<el-col :span="4" style="width: 66.5%;">
							<el-form-item prop="linkEmail" >
								<el-input v-model="apUnitEntity.linkEmail"  placeholder="" ></el-input>
							</el-form-item>
						</el-col>
					</el-row>
				</el-col>
			</el-row>
			<!--第七行-->
			<el-row>
				<el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
					<span class="red"></span>
					<span class="">上级主管单位</span>
				</el-col>
				<el-col :span="12" style="width: 75%;">
					<el-form-item prop="upMainUnit">
						<el-input v-model="apUnitEntity.upMainUnit"  placeholder="" ></el-input>
					</el-form-item>
				</el-col>
			</el-row>
			<!--第八行-->
			<el-row>
				<el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
					<span class="red">*</span>
					<span class="">单位成立时间</span>
				</el-col>
				<el-col :span="10" style="width: 25%;">
					<el-form-item prop="establishTime">
						<el-date-picker type="date" placeholder="选择日期" v-model="apUnitEntity.establishTime" style="width: 100%;"/>
					</el-form-item>
				</el-col>
				<el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
					<span class="red">*</span>
					<span class="">单位注册时间</span>
				</el-col>
				<el-col :span="4" style="width: 25%;">
					<el-form-item prop="unitRegistTime">
						<el-date-picker type="date" placeholder="选择日期" v-model="apUnitEntity.unitRegistTime" style="width: 100%;"/>
					</el-form-item>
				</el-col>
			</el-row>
			<!--第九行-->
			<el-row>
				<el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
					<span class="red">*</span>
					<span class="">统一社会信用代码</span>
				</el-col>
				<el-col :span="12" style="width: 75%;">
					<el-form-item prop="uniscid">
						<el-input v-model="apUnitEntity.uniscid"  placeholder="" ></el-input>
					</el-form-item>
				</el-col>
			</el-row>
			<!--第十行-->
			<el-row>
				<el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
					<span class="red">*</span>
					<span class="">用户名</span>
				</el-col>
				<el-col :span="12" style="width: 75%;">
					<el-form-item prop="userName">
						<el-input v-model="apUnitEntity.userName"  placeholder="" autoComplete="off"></el-input>
                    </el-form-item>
				</el-col>
			</el-row>
			<el-row>
				<el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
					<span class="red">*</span>
					<span class="">密码</span>
				</el-col>
				<el-col :span="12" style="width: 75%;">
					<el-form-item prop="password">
                        <el-input v-model="apUnitEntity.password"  placeholder="" show-password auto-complete="new-password"></el-input>
					</el-form-item>
				</el-col>
			</el-row>
			<!--第十一行-->
			<el-row>
				<el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
					<span class="red">*</span>
					<span class="">注册（开办）资金（万元）</span>
				</el-col>
				<el-col :span="12" style="width: 75%;">
					<el-form-item prop="registMoney">
						<el-input v-model="apUnitEntity.registMoney"  placeholder="" ></el-input>
					</el-form-item>
				</el-col>
			</el-row>
			<!--第十二行-->
			<el-row>
				<el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
					<span class="">专业技术人员</span>
				</el-col>
				<el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
					<span class="">60周岁以下</span>
				</el-col>
				<el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
					<span class="">60周岁以上</span>
				</el-col>
				<el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
					<span class="">合计</span>
				</el-col>
			</el-row>
			<!--第十三行-->
			<el-row>
				<el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
					<span class="red">*</span>
					<span class="">高级职称</span>
				</el-col>
				<el-col :span="12" style="width: 25%;">
					<el-form-item prop="highDownsixty">
						<el-input type="number" v-model.number="apUnitEntity.highDownsixty" :min="0" placeholder="" @change="sum"></el-input>
					</el-form-item>
				</el-col>
				<el-col :span="12" style="width: 25%;">
					<el-form-item prop="highUpsixty">
						<el-input type="number" v-model.number="apUnitEntity.highUpsixty" :min="0" placeholder="" @change="sum"></el-input>
					</el-form-item>
				</el-col>
				<el-col :span="12" style="width: 25%;">
					<el-form-item prop="highSum">
						<el-input type="number" v-model.number="apUnitEntity.highSum" :min="0" placeholder="" :disabled="true"></el-input>
					</el-form-item>
				</el-col>
			</el-row>
			<!--第十四行-->
			<el-row>
				<el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
					<span class="red">*</span>
					<span class="">中级职称</span>
				</el-col>
				<el-col :span="12" style="width: 25%;">
					<el-form-item prop="midDownsixty">
						<el-input type="number" v-model.number="apUnitEntity.midDownsixty" :min="0" placeholder="" @change="sum"></el-input>
					</el-form-item>
				</el-col>
				<el-col :span="12" style="width: 25%;">
					<el-form-item prop="midUpsixty">
						<el-input type="number" v-model.number="apUnitEntity.midUpsixty" :min="0" placeholder="" @change="sum"></el-input>
					</el-form-item>
				</el-col>
				<el-col :span="12" style="width: 25%;">
					<el-form-item prop="midSum">
						<el-input type="number" v-model.number="apUnitEntity.midSum" :min="0" placeholder="" :disabled="true"></el-input>
					</el-form-item>
				</el-col>
			</el-row>
			<!--第十五行-->
			<el-row>
				<el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
					<span class="red">*</span>
					<span class="">初级职称</span>
				</el-col>
				<el-col :span="12" style="width: 25%;">
					<el-form-item prop="priDomnsixty">
						<el-input type="number" v-model.number="apUnitEntity.priDomnsixty" :min="0" placeholder="" @change="sum"></el-input>
					</el-form-item>
				</el-col>
				<el-col :span="12" style="width: 25%;">
					<el-form-item prop="priUpsixty">
						<el-input type="number" v-model.number="apUnitEntity.priUpsixty" :min="0" placeholder="" @change="sum"></el-input>
					</el-form-item>
				</el-col>
				<el-col :span="12" style="width: 25%;">
					<el-form-item prop="priSum">
						<el-input type="number" v-model.number="apUnitEntity.priSum" :min="0" placeholder="" :disabled="true"></el-input>
					</el-form-item>
				</el-col>
			</el-row>
			<!--第十六行-->
			<el-row>
				<el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
					<span class="red">*</span>
					<span class="">合计</span>
				</el-col>
				<el-col :span="12" style="width: 25%;">
					<el-form-item prop="sumDownsixty">
						<el-input type="number" v-model.number="apUnitEntity.sumDownsixty" :min="0" placeholder="" :disabled="true"></el-input>
					</el-form-item>
				</el-col>
				<el-col :span="12" style="width: 25%;">
					<el-form-item prop="sumUpsixty">
						<el-input type="number" v-model.number="apUnitEntity.sumUpsixty" :min="0" placeholder="" :disabled="true"></el-input>
					</el-form-item>
				</el-col>
				<el-col :span="12" style="width: 25%;">
					<el-form-item prop="sum">
						<el-input type="number" v-model.number="apUnitEntity.sum" :min="0" placeholder="" :disabled="true"></el-input>
					</el-form-item>
				</el-col>
			</el-row>
			<!--第十七行-->
			<el-row>
				<el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 390px;">
					<div style="margin-top: 190px;">
						<span class="">具有承担地震安全性评价相关专业背景的高级职称专业技术人员情况</span>
					</div>
				</el-col>
				<el-col :span="2"  style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
					<el-row >
						<el-col :span="2" class="tab" style="width: 100%;text-align: center;height: 30px;line-height: 30px;">
							<span class="">专业</span>
						</el-col>
					</el-row>
					<el-row>
						<el-col :span="2" class="tab" style="width: 100%;text-align: center;height: 120px;line-height: 120px;">
							<span class="">地震学</span>
						</el-col>
					</el-row>
					<el-row>
						<el-col :span="2" class="tab" style="width: 100%;text-align: center;height: 120px;line-height: 120px;">
							<span class="">地震地质学</span>
						</el-col>
					</el-row>
					<el-row>
						<el-col :span="2" class="tab" style="width: 100%;text-align: center;height: 120px;line-height: 120px;">
							<span class="">地震工程学</span>
						</el-col>
					</el-row>
				</el-col>
				<el-col :span="2"  style="width: 50%;text-align: center;height: 30px;line-height: 30px;">
					<el-row >
						<el-col :span="2" class="tab" style="width: 100%;text-align: center;height: 30px;line-height: 30px;">
							<span class="">高级职称人员姓名</span>
						</el-col>
					</el-row>
					<el-row>
						<el-col :span="2"  style="width: 100%;text-align: center;height: 120px;">
							<el-form-item prop="dzxHigh">
								<el-input
										type="textarea"
										resize="none"
										placeholder=""
										v-model="apUnitEntity.dzxHigh">
								</el-input>
							</el-form-item>
						</el-col>
					</el-row>
					<el-row>
						<el-col :span="2"  style="width: 100%;text-align: center;height: 120px;line-height: 120px;">
							<el-form-item prop="dzdzxHigh">
								<el-input
										type="textarea"
										resize="none"
										placeholder=""
										v-model="apUnitEntity.dzdzxHigh">
								</el-input>
							</el-form-item>
						</el-col>
					</el-row>
					<el-row>
						<el-col :span="2"  style="width: 100%;text-align: center;height: 120px;line-height: 120px;">
							<el-form-item prop="dzgcxHigh">
								<el-input
										type="textarea"
										resize="none"
										placeholder=""
										v-model="apUnitEntity.dzgcxHigh">
								</el-input>
							</el-form-item>
						</el-col>
					</el-row>
				</el-col>
			</el-row>
			<!--第十八行-->
			<el-row>
				<el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
					<div >
						<span class="">住所</span>
					</div>
				</el-col>
				<el-col :span="12" style="width: 75%;">
					<el-form-item prop="dom">
						<el-input
								placeholder=""
								v-model="apUnitEntity.dom">
						</el-input>
					</el-form-item>
				</el-col>
			</el-row>
			<el-row>
				<el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
					<div >
						<span class="">营业场所/主要经营场所/经营场所</span>
					</div>
				</el-col>
				<el-col :span="12" style="width: 75%;">
					<el-form-item prop="opLoc">
						<el-input
								placeholder=""
								v-model="apUnitEntity.opLoc">
						</el-input>
					</el-form-item>
				</el-col>
			</el-row>
			<el-row>
				<el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
					<div >
						<span class="">经营期限自/营业期限自/合伙期限自</span>
					</div>
				</el-col>
				<el-col :span="12" style="width: 75%;">
					<el-form-item prop="opFrom">
						<el-date-picker type="date" placeholder="选择日期" v-model="apUnitEntity.opFrom" style="width: 100%;"/>
						<el-input
								placeholder=""
								v-model="apUnitEntity.opFrom">
						</el-input>
					</el-form-item>
				</el-col>
			</el-row>
			<el-row>
				<el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
					<div >
						<span class="">经营期限至/营业期限至/合伙期限至</span>
					</div>
				</el-col>
				<el-col :span="12" style="width: 75%;">
					<el-form-item prop="opTo">
						<el-date-picker type="date" placeholder="选择日期" v-model="apUnitEntity.opTo" style="width: 100%;"/>
					</el-form-item>
				</el-col>
			</el-row>
			<el-row>
				<el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
					<div >
						<span class="">经营范围</span>
					</div>
				</el-col>
				<el-col :span="12" style="width: 75%;">
					<el-form-item prop="opScope">
						<el-input
								placeholder=""
								v-model="apUnitEntity.opScope">
						</el-input>
					</el-form-item>
				</el-col>
			</el-row>
			<el-row>
				<el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
					<div >
						<span class="">业务范围类型</span>
					</div>
				</el-col>
				<el-col :span="12" style="width: 75%;">
					<el-form-item prop="opScoType">
						<el-input
								placeholder=""
								v-model="apUnitEntity.opScoType">
						</el-input>
					</el-form-item>
				</el-col>
			</el-row>
			<el-row>
				<el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
					<div >
						<span class="">业务范围类型（中文名称）</span>
					</div>
				</el-col>
				<el-col :span="12" style="width: 75%;">
					<el-form-item prop="opScoTypeCn">
						<el-input
								placeholder=""
								v-model="apUnitEntity.opScoTypeCn">
						</el-input>
					</el-form-item>
				</el-col>
			</el-row>
			<el-row>
				<el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
					<div >
						<span class="">登记机关</span>
					</div>
				</el-col>
				<el-col :span="12" style="width: 75%;">
					<el-form-item prop="regOrg">
						<el-input
								placeholder=""
								v-model="apUnitEntity.regOrg">
						</el-input>
					</el-form-item>
				</el-col>
			</el-row>
			<el-row>
				<el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
					<div >
						<span class="">登记机关（中文名称）</span>
					</div>
				</el-col>
				<el-col :span="12" style="width: 75%;">
					<el-form-item prop="regOrgCn">
						<el-input
								placeholder=""
								v-model="apUnitEntity.regOrgCn">
						</el-input>
					</el-form-item>
				</el-col>
			</el-row>
			<el-row>
				<el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
					<div >
						<span class="">登记状态</span>
					</div>
				</el-col>
				<el-col :span="12" style="width: 75%;">
					<el-form-item prop="regState">
						<el-input
								placeholder=""
								v-model="apUnitEntity.regState">
						</el-input>
					</el-form-item>
				</el-col>
			</el-row>
			<el-row>
				<el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
					<div >
						<span class="">登记状态（中文名称）</span>
					</div>
				</el-col>
				<el-col :span="12" style="width: 75%;">
					<el-form-item prop="regStateCn">
						<el-input
								placeholder=""
								v-model="apUnitEntity.regStateCn">
						</el-input>
					</el-form-item>
				</el-col>
			</el-row>
			<el-row>
				<el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
					<span class="">核准日期</span>
				</el-col>
				<el-col :span="10" style="width: 25%;">
					<el-form-item prop="apprDate">
						<el-date-picker type="date" placeholder="选择日期" v-model="apUnitEntity.apprDate" style="width: 100%;"/>
					</el-form-item>
				</el-col>
				<el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
					<span class="">吊销时间</span>
				</el-col>
				<el-col :span="4" style="width: 25%;">
					<el-form-item prop="revDate">
						<el-date-picker type="date" placeholder="选择日期" v-model="apUnitEntity.revDate" style="width: 100%;"/>
					</el-form-item>
				</el-col>
			</el-row>
			<el-row>
				<el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
					<div >
						<span class="">联络员身份证号码</span>
					</div>
				</el-col>
				<el-col :span="12" style="width: 75%;">
					<el-form-item prop="linkmanCerNo">
						<el-input
								placeholder=""
								v-model="apUnitEntity.linkmanCerNo">
						</el-input>
					</el-form-item>
				</el-col>
			</el-row>
			<el-row>
				<el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
					<div >
						<span class="">经营地址经度</span>
					</div>
				</el-col>
				<el-col :span="12" style="width: 75%;">
					<el-form-item prop="operatingLongitude">
						<el-input
								placeholder=""
								v-model="apUnitEntity.operatingLongitude">
						</el-input>
					</el-form-item>
				</el-col>
			</el-row>
			<el-row>
				<el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 30px;line-height: 30px;">
					<div >
						<span class="">经营地址纬度</span>
					</div>
				</el-col>
				<el-col :span="12" style="width: 75%;">
					<el-form-item prop="operatingLatitude">
						<el-input
								placeholder=""
								v-model="apUnitEntity.operatingLatitude">
						</el-input>
					</el-form-item>
				</el-col>
			</el-row>
			<el-row>
				<el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 120px;">
					<div style="margin-top: 50px;">
						<span class="">吊销原因</span>
					</div>
				</el-col>
				<el-col :span="12" style="width: 75%;">
					<el-form-item prop="sugRevReason">
						<el-input
								type="textarea"
								resize="none"
								placeholder=""
								v-model="apUnitEntity.sugRevReason">
						</el-input>
					</el-form-item>
				</el-col>
			</el-row>
			<el-row>
				<el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 120px;">
					<div style="margin-top: 50px;">
						<span class="red" >*</span>
						<span class="">开展地震安全性评价工作业绩情况</span>
					</div>
				</el-col>
				<el-col :span="12" style="width: 75%;">
					<el-form-item prop="apYjqk">
						<el-input
								type="textarea"
								resize="none"
								placeholder=""
								v-model="apUnitEntity.apYjqk">
						</el-input>
					</el-form-item>
				</el-col>
			</el-row>
			<!--第十九行-->
			<el-row>
				<el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 120px;">
					<div style="margin-top: 40px;">
						<span class="red">*</span>
						<span class="">具有承担地震安全性评价工作技术能力情况</span>
					</div>
				</el-col>
				<el-col :span="12" style="width: 75%;">
					<el-form-item prop="apJsnlqk">
						<el-input
								type="textarea"
								resize="none"
								placeholder=""
								v-model="apUnitEntity.apJsnlqk">
						</el-input>
					</el-form-item>
				</el-col>
			</el-row>
			<!--第二十行-->
			<el-row>
				<el-col :span="2" class="tab" style="width: 25%;text-align: center;height: 120px;">
					<div style="margin-top: 50px;">
						<span class="red">*</span>
						<span class="">质量管理体系情况</span>
					</div>
				</el-col>
				<el-col :span="12" style="width: 75%;">
					<el-form-item prop="zlglTxqk">
						<el-input
								type="textarea"
								resize="none"
								placeholder=""
								v-model="apUnitEntity.zlglTxqk">
						</el-input>
					</el-form-item>
				</el-col>
			</el-row>

		</el-form>
		<el-row>
			<el-col :span="24" style="text-align: center; margin-top: 30px;">
				<div style="">
					<el-button type="primary" size="small" style="width: 60px;height: 30px;" @click="submitForm('apUnitEntity')">提交</el-button>
					<el-button type="warning" size="small" style="width: 60px;height: 30px;" @click="resetForm('apUnitEntity')">重置</el-button>
				</div>
			</el-col>
		</el-row>
	</div>
</div>
<script>
    var vm = new Vue({
        el: '#app',
        data() {
            // 验证手机号是否合法
            let checkMobile = (rule, value, callback) => {
                if (!this.checkTel(value) && value != '') {
                    callback(new Error('手机号码不合法'));
                } else {
                    callback();
                }
            }
            // 验证邮箱是否合法
            let checkEmail = (rule, value, callback) => {
                if (!this.isEmail(value) && value != '') {
                    callback(new Error('邮箱不合法'));
                } else {
                    callback();
                }
            }
            //验证数值为非负
            let checkNumber= (rule, value, callback)=>{
                if(!this.checkNum(value)){
                    callback(new Error('请输入非负数数值'));
                }else {
                    callback();
                }
            };
            // 验证数值为正整数或0
			let checkInt = (rule, value, callback)=>{
				if(!this.checkPositiveInt(value)) {
					callback(new Error('请输入正整数！'));
				} else {
					callback();
				}
			};
            // 验证用户名是否合法
            let checkUserName = (rule, value, callback) => {
                if(!isUserName(value) && value != '') {
                    callback(new Error('用户名必须为字母、数字或下划线!'));
                } else {
                    callback();
                }
            };
            // 验证密码是否合法
            let checkPassword = (rule, value, callback) => {
                if(!isPassword(value) && value != "") {
                    callback(new Error('密码必须为字母或数字!'));
                } else {
                    callback();
                }
            };
            return {
                currentPage: 1, //默认显示页面为1
                pagesize: 5, // 每页的数据条数
                textarea2:'',
                radio1:'',
                radio2:'',
                sydisabled: 0,
                qydisabled: 0,
                provinceValue:'',
                cityValue:'',
                areaValue:'',
                provinceData:[],
				orgTypeList:[],
				jinjilist:[],
				hangyetypeLIst:[],
                cityData:[],
                areaData:[],
                apUnitlist:[],
                apUnitEntity : {
                    unitName:'',
                    syUnitType:'',
                    qyUnitType:'',
                    registAddr:'',
                    registAddrCode:'',
                    bgAddr:'',
                    bgAddrCode:'',
                    legalMan:'',
                    legalManTel:'',
                    linkMan:'',
                    linkTel:'',
                    linkOffice:'',
                    linkFax:'',
                    linkEmail:'',
                    upMainUnit:'',
                    establishTime:'',
                    unitRegistTime:'',
                    uniscid:'',
					userName:'',
                    password:'',
                    registMoney:'',
                    highDownsixty:0,
                    highUpsixty:0,
                    highSum:0,
                    midDownsixty:0,
                    midUpsixty:0,
                    midSum:0,
                    priDomnsixty:0,
                    priUpsixty:0,
                    priSum:0,
                    sumDownsixty:0,
                    sumUpsixty:0,
                    sum:0,
                    dzxHigh:'',
                    dzdzxHigh:'',
                    dzgcxHigh:'',
                    apYjqk:'',
                    apJsnlqk:'',
                    zlglTxqk:'',
                    provinceValue:'',
                    cityValue:'',
                    areaValue:'',
                    detailAddress: '',
                    pripId: '',
                    regNo: '',
                    entType: '',
                    entTypeCn: '',
                    industryCategory: '地震服务',
                    organizationClass: '',
                    nationalEconomy: '',
                    dom: '',
                    opLoc: '',
                    opFrom: '',
                    opTo: '',
                    opScope: '',
                    opScoType: '',
                    opScoTypeCn: '',
                    regOrg: '',
                    regOrgCn: '',
                    regState: '',
                    regStateCn: '',
                    apprDate: '',
                    revDate: '',
                    sugRevReason: '',
                    linkmanCerNo: '',
                    operatingLongitude: '',
                    operatingLatitude: '',
                },
                apTypelist:[{
                	name: "事业",
					typeList: [{
						code:'0',
						name:'全额拨款'
					},{
						code:'1',
						name:'差额拨款'
					},{
						code:'2',
						name:'自收自支'
					},{
						code:'3',
						name:'其他'
					}]
                },{
                	name: "企业",
					typeList: [{
						code:'0',
						name:'国有企业'
					},{
						code:'1',
						name:'集体企业'
					},{
						code:'2',
						name:'私营企业'
					},{
						code:'3',
						name:'其他'
					}]
                }],
                rules: {
                    pripId: [{
                        required: true,
                        message: '  ',
                        trigger: 'blur'
                    }],
                    industryCategory: [{
                        required: true,
                        message: '  ',
                        trigger: 'blur'
                    }],
                    organizationClass: [{
                        required: true,
                        message: '  ',
                        trigger: 'blur'
                    }],
                    nationalEconomy: [{
                        required: true,
                        message: '  ',
                        trigger: 'blur'
                    }],
                    provinceValue: [{
                        required: true,
                        message: '  ',
                        trigger: 'blur'
                    }],
                    cityValue: [{
                        required: true,
                        message: '  ',
                        trigger: 'blur'
                    }],
                    areaValue: [{
                        required: true,
                        message: '  ',
                        trigger: 'blur'
                    }],
                    unitName: [{
                        required: true,
						//message: '单位名称不能为空',
                        message: '  ',
                        trigger: 'blur'

                    },{
                        max : 128,
                        message : ' ',
                        trigger : 'blur'
                    }],
                    uniscid: [{
                		required:true,
						// message: '请输入统一社会信用代码',
                        message: '  ',
						trigger: 'blur'
            		},{
                        max : 200,
                        message : ' ',
                        trigger : 'blur'
                    }],
					userName: [{
                        required: true,
						// message: '请输入用户名',
                        message: '  ',
						trigger: 'blur'
					},{
                        min : 2,
						max : 50,
						message : ' ',
						trigger : 'blur'
					},{
                        validator : checkUserName,
                        message : '  ',
                        trigger : 'blur'
                    }],
					registAddr: [{
                        required: true,
						// message: '请输入注册地址',
                        message: '  ',
						trigger: 'blur'
					},{
                        max : 128,
                        message : ' ',
                        trigger : 'blur'
                    }],
					registAddrCode: [{
                       required: true,
						// message: '请输入注册地址邮编',
                        message: '  ',
						trigger: 'blur'
					},{
                        min: 6,
						max: 6,
						// message: '注册地址邮编不合法',
                        message: '  ',
						trigger: 'blur'

					}],
					bgAddr: [{
						required: true,
						// message: '请输入办公地址',
                        message: '  ',
						trigger: 'blur'
					},{
                        max : 128,
                        message : ' ',
                        trigger : 'blur'
                    }],
					bgAddrCode: [{
                        required: true,
						// message: '请输入办公地址邮编',
                        message: '  ',
						trigger: 'blur'
					},{
                        min: 6,
                        max: 6,
                        // message: '办公地址邮编不合法',
                        message: '  ',
                        trigger: 'blur'

                    }],
					legalMan: [{
                       required: true,
						// message: '请输入法定代表人',
                        message: '  ',
						trigger: 'blur'
					},{
                        max : 100,
                        message : ' ',
                        trigger : 'blur'
                    }],
					legalManTel: [{
                        required: true,
						// message: '请输入法定代表人电话',
                        message: '  ',
						trigger: 'blur'
					},{
                        validator: checkMobile,
						// message: '法定代表人电话不合法',
                        message: '  ',
						trigger: 'blur'
					},{
                        max : 100,
                        message : ' ',
                        trigger : 'blur'
                    }],
					linkMan: [{
						required: true,
						// message: '请输入联系人',
                        message: '  ',
						trigger: 'blur'
					},{
                        max : 200,
                        message : ' ',
                        trigger : 'blur'
                    }],
					linkTel: [{
						required: true,
						// message: '请输入联系人手机号码',
                        message: '  ',
						trigger: 'blur'
					},
					{
						validator: checkMobile,
						// message: '联系人手机号码不合法',
                        message: '  ',
						trigger: 'blur'
					},{
                        max : 200,
                        message : ' ',
                        trigger : 'blur'
                    }],
                    linkOffice: [{
						required: true,
						// message: '请输入办公室电话',
                        message: '  ',
						trigger: 'blur'
					},{
                        max : 200,
                        message : ' ',
                        trigger : 'blur'
                    }],
					linkEmail: [{
						required: true,
						// message: '请输入联系人电子邮箱',
                        message: '  ',
						trigger: 'blur'
					},
					{
						validator: checkEmail,
						// message: '联系人电子邮箱不合法',
						trigger: 'blur'
					},{
                        max : 200,
                        message : ' ',
                        trigger : 'blur'
                    }],
					registMoney: [{
                        required: true,
						// message: '请输入注册资金',
                        message: '  ',
						trigger: 'blur'
					},{
                        // 验证为非负小数
                        validator: checkNumber,
						message: '  ',
						trigger: 'blur'
					},{
                        max : 100,
                        message : ' ',
                        trigger : 'blur'
                    }],
                    establishTime: [{
                        required: true,
                        // message: '单位成立时间不能为空';
                        message: '  ',
                        trigger: 'blur'
                    }],
                    unitRegistTime: [{
                        required: true,
                        //message: '单位注册时间不能为空';
                        message: '  ',
                        trigger: 'blur'
                    }],
                    apYjqk: [{
                        required: true,
                        // message: "请输入开展地震安全性评价工作业绩情况",
                        message: '  ',
						trigger: 'blur'
                    },{
                        max : 1000,
                        message : ' ',
                        trigger : 'blur'
                    }],
                    apJsnlqk: [{
                        required: true,
                        // message: "请输入具有承担地震安全性评价工作技术能力情况",
                        message: '  ',
						trigger: 'blur'
					},{
                        max : 1000,
                        message : ' ',
                        trigger : 'blur'
                    }],
                    zlglTxqk: [{
                        required: true,
                        // message: "请输入质量管理体系情况",
                        message: '  ',
						trigger: 'blur'
					},{
                        max : 1000,
                        message : ' ',
                        trigger : 'blur'
                    }],
					password: [{
                        required: true,
						// message: "请输入密码",
                        message: '  ',
						trigger: 'blur'
					},{
                        min: 6,
                        message: '  ',
                        trigger: 'blur'
                    },{
                        validator : checkPassword,
                        message : '  ',
                        trigger: 'blur'
                    }],
                    highDownsixty: [{
                        required: true,
                        // message: "请输入60周岁以下高级职称技术人员人数",
                        message: '  ',
						trigger: 'blur'
					},{
                        validator: checkInt,
						message: '  ',
						trigger: 'blur'
					}],
                    highUpsixty: [{
                        required: true,
                        // message: "请输入60周岁以下高级职称技术人员人数",
                        message: '  ',
						trigger: 'blur'
					},{
                        validator: checkInt,
                        message: '  ',
                        trigger: 'blur'
                    }],
                    highSum: [{
                        required: true,
                        // message: "请输入高级职称技术人员人数",
                        message: '  ',
						trigger: 'blur'
					},{
                        validator: checkInt,
                        message: '  ',
                        trigger: 'blur'
                    }],
                    midDownsixty: [{
                        required: true,
                        // message: "请输入60周岁以下中级职称技术人员人数",
                        message: '  ',
						trigger: 'blur'
					},{
                        validator: checkInt,
                        message: '  ',
                        trigger: 'blur'
                    }],
                    midUpsixty: [{
                        required: true,
                        // message: "请输入60周岁以上中级职称技术人员人数",
                        message: '  ',
						trigger: 'blur'
					},{
                        validator: checkInt,
                        message: '  ',
                        trigger: 'blur'
                    }],
                    midSum: [{
                        required: true,
                        // message: "请输入中级职称技术人员人数",
                        message: '  ',
						trigger: 'blur'
					},{
                        validator: checkInt,
                        message: '  ',
                        trigger: 'blur'
                    }],
                    priDomnsixty: [{
                        required: true,
                        // message: "请输入60周岁以下初级职称技术人员人数",
                        message: '  ',
						trigger: 'blur'
					},{
                        validator: checkInt,
                        message: '  ',
                        trigger: 'blur'
                    }],
                    priUpsixty: [{
                        required: true,
                        // message: "请输入60周岁以上初级职称技术人员人数",
                        message: '  ',
						trigger: 'blur'
					},{
                        validator: checkInt,
                        message: '  ',
                        trigger: 'blur'
                    }],
                    priSum: [{
                        required: true,
                        // message: "请输入初级职称技术人员人数",
                        message: '  ',
						trigger: 'blur'
					},{
                        validator: checkInt,
                        message: '  ',
                        trigger: 'blur'
                    }],
                    sumDownsixty: [{
                        required: true,
                        // message: "请输入60周岁以下技术人员人数",
                        message: '  ',
						trigger: 'blur'
					},{
                        validator: checkInt,
                        message: '  ',
                        trigger: 'blur'
                    }],
                    sumUpsixty: [{
                        required: true,
                        // message: "请输入60周岁以上技术人员人数",
                        message: '  ',
						trigger: 'blur'
					},{
                        validator: checkInt,
                        message: '  ',
                        trigger: 'blur'
                    }],
                    sum: [{
                        required: true,
                        // message: "请输入所有技术人员人数",
                        message: '  ',
						trigger: 'blur'
					},{
                        validator: checkInt,
                        message: '  ',
                        trigger: 'blur'
                    }],
                    upMainUnit : [{
                        max : 200,
                        message : '  ',
                        trigger : 'blur'
                    }],
                    dzxHigh: [{
                        max : 1000,
                        message : '  ',
                        trigger : 'blur'
                    }],
                    dzdzxHigh: [{
                        max : 1000,
                        message : '  ',
                        trigger : 'blur'
                    }],
                    dzgcxHigh: [{
                        max : 1000,
                        message : '  ',
                        trigger : 'blur'
                    }],
                    defaultProps: null,
                    CheckedKeys:['141'],
				},
			}

        },
        created(){
            axios.get('../../json/ChinaCity.json').then(res=>{
                this.provinceData = res.data;
            }).catch(e => {
                this.$message.error("网络连接超时");
            })
            axios.get('../../json/orgtype.json').then(res=>{
                this.orgTypeList = res.data;
			}).catch(e => {
					this.$message.error("网络连接超时");
			})
            axios.get('../../json/jinji.json').then(res=>{
                this.jinjilist = res.data;
			}).catch(e => {
					this.$message.error("网络连接超时");
			})
            axios.get('../../json/IndustryCategory.json').then(res=>{
				this.hangyetypeLIst = res.data;
			}).catch(e => {
					this.$message.error("网络连接超时");
			})
        },
        methods: {
            handleCheckChange(data, checked, node) {
                if(checked == true){
                    this.apUnitEntity.organizationClass = data.label;
                    this.$refs.tree.setCheckedNodes([data]);
                }
            },

            handleCheckChangejinji(data, checked, node) {
				if(checked == true){
					this.apUnitEntity.nationalEconomy = data.label;
					this.$refs.tree.setCheckedNodes([data]);
				}
			},

            handleCheckChangehangye(data, checked, node) {
                if(checked == true){
                    this.apUnitEntity.industryCategory = data.label;
                    this.$refs.tree.setCheckedNodes([data]);
                }
            },

            submitForm(apUnitEntity) {
                this.$refs[apUnitEntity].validate((valid) => {
                    if(valid) {
                        this.apUnitEntity.registAddr = this.apUnitEntity.provinceValue + "-"
                            + this.apUnitEntity.cityValue + "-" + this.apUnitEntity.areaValue + "-" + this.apUnitEntity.detailAddress;
                        axios({
                            method: 'post',
                            url: '/dzjap/apunit/regist',
                            data: this.apUnitEntity,
                        })
                            .then(response => {
                                let data = response.data;
                                if (data.code == 200) {
                                    this.$message({
                                        message: '已注册，请注意查看审核结果！',
                                        type: 'success'
                                    });
                                    location.href = './apunitsh.html'
                                } else {
                                    this.$message.error(data.msg);
                                }
                            })
                            .catch(function (error) {
                                console.log(error);
                            });
                    } else {
                        console.log("必填信息不能为空");
                        return false;
                    }
                })

            },
            resetForm(formName) {
                this.sydisabled = 0;
                this.qydisabled = 0;
                this.apUnitEntity.syUnitType = "";
                this.apUnitEntity.qyUnitType = "";
                this.apUnitEntity.provinceValue = "";
                this.apUnitEntity.cityValue = "";
                this.apUnitEntity.areaValue = "";
                this.$refs[formName].resetFields();

            },
            syChangeValue(value){
                this.apUnitEntity.qyUnitType = ''
                this.apUnitlist = [];
                this.apTypelist.map(e=>{//遍历数据
                    if( value == e.name){
                        this.apUnitlist = e.typeList;
                        return;
                    }
                })
                console.log(value)
            },
            qyChangeValue(value){
                
            },
            chooseProvince(value){
                this.apUnitEntity.cityValue = '';
                this.apUnitEntity.areaValue = '';
                this.cityData = [];
                this.areaData = [];
                this.provinceData.map(e=>{//遍历数据
                    if( value == e.name){
                        this.cityData = e.cityList;
                        return;
                    }
                })
                console.log(value)
                this.apUnitEntity.registAddr = value;
            },
            chooseCity(value){
                this.apUnitEntity.areaValue = '';
                this.cityData.map(e=>{//遍历数据
                    if( value == e.name){
                        this.areaData = e.areaList;
                        return;
                    }
                })
                this.apUnitEntity.registAddr=this.apUnitEntity.registAddr +"-" +value;
                console.log(this.apUnitEntity.registAddr)
            },
            chooseArea(value){
                this.apUnitEntity.registAddr=this.apUnitEntity.registAddr +"-" +value;
                console.log(this.apUnitEntity.registAddr)
            },

            //检查上传类型
            checkType() {
                let vm = this;
                let allImgExt = '.xls|.xlsx|';
                let filePath = this.$refs.head.value;
                let extName = filePath.substring(filePath.lastIndexOf(".")).toLowerCase();
                if (allImgExt.indexOf(extName + '|') === -1) {
                    this.$message("请选择正确的Excel文件");
                    this.$refs.head.value = '';
                    excelContent = [];
                    return;
                }
                let file = this.$refs.head.files[0];
                this.selectForm.fileName = file.name;

            },
            // 验证字符串是否为手机号
            checkTel(str) {
                let re = /^1\d{10}$/
                if (re.test(str)) {
                    return true;
                } else {
                    return false;
                }
            },
            // 验证字符串是否为邮箱
            isEmail(str) {
                let re = /^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z0-9]{2,6}$/
                if (re.test(str)) {
                    return true;
                } else {
                    return false;
                }
            },
            //验证非负浮点数值
            checkNum(str){
                let re=/^\d+(\.\d+)?$/;
                if (re.test(str)) {
                    return true;
                } else {
                    return false;
                }
            },
			// 验证正整数
			checkPositiveInt(str) {
				let re = /^([1-9]\d*|[0]{1,1})$/;
				if(re.test(str)) {
				    return true;
				} else {
				    return false;
				}
			},
            //选取文件
            selectFile(){
                this.$refs.head.click();
            },
            //每页下拉显示数据
            handleSizeChange: function(size) {
                this.pagesize = size;
                /*console.log(this.pagesize) */
            },
            //点击第几页
            handleCurrentChange: function(currentPage) {
                this.currentPage = currentPage;
                /*console.log(this.currentPage) */
            },
			// 计算职称人数
            sum() {
                if(this.apUnitEntity.highDownsixty == '') { this.apUnitEntity.highDownsixty = 0; }
                if(this.apUnitEntity.highUpsixty == '') { this.apUnitEntity.highUpsixty = 0; }
                if(this.apUnitEntity.midDownsixty == '') { this.apUnitEntity.midDownsixty = 0; }
                if(this.apUnitEntity.midUpsixty == '') { this.apUnitEntity.midUpsixty = 0; }
                if(this.apUnitEntity.priDomnsixty == '') { this.apUnitEntity.priDomnsixty = 0; }
                if(this.apUnitEntity.priUpsixty == '') { this.apUnitEntity.priUpsixty = 0; }

				this.apUnitEntity.highSum = this.apUnitEntity.highDownsixty + this.apUnitEntity.highUpsixty;
				this.apUnitEntity.midSum = this.apUnitEntity.midDownsixty + this.apUnitEntity.midUpsixty;
				this.apUnitEntity.priSum = this.apUnitEntity.priDomnsixty + this.apUnitEntity.priUpsixty;
				this.apUnitEntity.sumDownsixty = this.apUnitEntity.highDownsixty + this.apUnitEntity.midDownsixty + this.apUnitEntity.priDomnsixty;
				this.apUnitEntity.sumUpsixty = this.apUnitEntity.highUpsixty + this.apUnitEntity.midUpsixty + this.apUnitEntity.priUpsixty;
				this.apUnitEntity.sum = this.apUnitEntity.highSum + this.apUnitEntity.midSum + this.apUnitEntity.priSum;

            }
        }

    })
</script>
</body>
</html>